<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>基本选择器示例</title>
    <script src="C:\Users\86198\Desktop\yl-dsj\jquery-3.6.0.min.js" type="text/javascript"></script>
</head>
<body>
    <div id="idDiv">DOM对象与jQuery对象的互相转化</div>
    <div class="classDiv">jQuery对象不能直接使用DOM对象的方法</div>
    <div class="classDiv">但可以通过将jQuery对象转换成DOM对象后再调用其方法</div>
    <span class="classSpan">基本选择器是jQuery中最常见的选择器</span>
    <script type="text/javascript">
       $(function(e) {
          $("#idDiv").css("color","blue");
          $(".classDiv").css("background-color","#dddddd");
          $("span").css("background-color","gray").css("color","white");
          $("*").css("font-size","20px");
          $("#idDiv,.classSpan").css("font-size","italic");

        } );
    </script>
</body>
</html>